package com.chuangjiangx.member.basic.web.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;


/**
 * 登录会员系统所需参数
 * Created by YangKuo on 2017/11/6.
 */
@Getter
@Setter
@ApiModel(value = "登录参数封装")
public class LoginRequest {

    /**
     * 会员手机号码
     */
    @ApiModelProperty(value = "手机号码",required = true,example = "13245654545")
    private String mobile;

    /**
     * 验证码
     */
    @ApiModelProperty(value = "登录验证码",required = true,example = "8989")
    private String verifyCode;

    /**
     * 所属商户id
     */
    private Long merchantId = -1L;


    private String jscode;

    private String encryptedData;

    private String iv;

    private String sessionKey;

    private String videoType;

    private int condition;

    private String memberInfo;

    public enum Condition {
        ADD_FACE(1),
        UPDATE_FACE(2);

        private int value;

        Condition(int value){
            this.value = value;
        }

        public static Condition getCondition(String condition) {
            Condition[] var1 = Condition.values();
            for (Condition var2 : var1) {
                if (condition.equals(var2.value + "")) {
                    return var2;
                }
            }
            return null;
        }
    }

}
